<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>列表页面</title>
</head>
<body>
<table border="1">
    <tr>
        <th>name</th>
        <th>address</th>
        <th>phone</th>
        <th>operate</th>
    </tr>
    <c:forEach items="${requestScope.data}" var="resume">
        <tr>
            <td>${resume.name}</td>
            <td>${resume.address}</td>
            <td>${resume.phone}</td>
            <td>
                <form action="/resume/queryById" method="post">
                    <input type="hidden" name="id" value="${resume.id}"/>
                    <input type="submit" value="编辑"/>
                </form>
                <form action="/resume/delete" method="post">
                    <input type="hidden" name="id" value="${resume.id}"/>
                    <input type="submit" value="删除"/>
                </form>
            </td>
        </tr>
    </c:forEach>
</table>

<form action="/resume/insert" method="get">
    <input type="submit" value="新增"/>
</form>

</body>
</html>